package com.study.log.repository.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.study.log.enums.LogType;
import lombok.Data;

import java.util.Date;

@Data
@TableName("log")
public class LogDO {

    @TableId(value = "id" , type = IdType.AUTO)
    private Long id;

    private String title;

    private LogType type;

    @TableField("method_name")
    private String methodName;

    @TableField("class_name")
    private String className;

    @TableField("store_uuid")
    private String storeUuid;

    private String params;

    private String ip;

    private long timed;

    @TableField("user_uuid")
    private String userUuid;

    @TableField("exception_detail")
    private String exceptionDetail;

    @TableField("created_at")
    private Date createdAt;

    private String token;

}
